{template 'common/header'}
	<div class="clearfix">
	{template 'platform/stat-keyword_search'}
		<h4 class="sub-title">详细数据</h4>
		<form action="" method="post" onsubmit="">
		<div class="table-responsive">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:150px;">关键字<i></i></th>
						<th>规则<i></i></th>
						<th style="width:80px;">模块<i></i></th>
						<th style="width:100px;">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $row}
					<tr>
						<td>{$row['content']}</td>
						<td class="row-hover">
							{if empty($row['rid'])}
								N/A
							{else}
								{if $rules[$row['rid']]['module'] <> 'cover'}
									<a target="main" href="{php echo url('platform/reply/post', array('m' => $rules[$row['rid']]['module'], 'rid' => $row['rid']))}">{$rules[$row['rid']]['name']}</a>
								{else}
									<a target="main" href="{php echo url('platform/cover/site')}">{$rules[$row['rid']]['name']}</a>
								{/if}
							{/if}
						</td>
						
						<td>{if $rules[$row['rid']]['module']}{$rules[$row['rid']]['module']}{else}default{/if}</td>
						<td>
							<a target="main" href="{php echo url('platform/stat/trend', array('id' => $row['rid']))}" class="btn btn-default btn-sm" title="使用率走势"><i class="fa fa-bar-chart-o"></i></a>
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
		</div>
		</form>
		{$pager}
	</div>
{template 'common/footer'}
